package com.bosssoft.trainee.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bosssoft.trainee.entity.dto.MenuDTO;
import com.bosssoft.trainee.entity.po.Menu;

import java.util.List;

/**
 * @author liuqiang
 * @date 2022/7/4 20:26
 */
public interface MenuService extends IService<Menu> {

    /**
     * 根据角色id查找路由
     * @param roleId roleId
     * @return List<MenuDTO>
     */
    List<MenuDTO> getMenuByRole(Integer roleId);


    /**
     * 根据路由路径查找路由
     * @param list List<String>
     * @return 路由List
     */
    List<MenuDTO> getMenuByPath(List<String> list);
}
